package com.wonders.hisdoctor.station.project.base.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wonders.his.common.utils.validator.group.PrimaryGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>药品处方状态记录</p>
 * <p>db_table: DRUG_PRESC_STATUS_REC</p>
 * @author 张澎_9970
 * @date 2021/02/01
 */
@ApiModel("药品处方状态记录")
@Accessors(chain = true)
@Data
@ToString
@TableName("DRUG_PRESC_STATUS_REC")
public class DrugPrescStatusRec implements Serializable {

    private static final long serialVersionUID = 2767901964716274627L;

    /** `主键` db_field: PRESC_ID; desc: 处方ID */
    @ApiModelProperty("处方ID")
    @NotNull(message = "处方ID不能为空", groups = PrimaryGroup.class)
    @TableField("PRESC_ID")
    private String prescId;

    /** db_field: DISPENSARY; desc: 发药药局：库存单位代码，见库存单位字典 */
    @ApiModelProperty("发药药局：库存单位代码，见库存单位字典")
    @TableField("DISPENSARY")
    private String dispensary;

    /** `主键` db_field: PRESC_STATUS; desc: 处方状态：已开单 ；已取药；已缴费 */
    @ApiModelProperty("处方状态：已开单 ；已取药；已缴费")
    @NotNull(message = "处方状态：已开单 ；已取药；已缴费不能为空", groups = PrimaryGroup.class)
    @TableField("PRESC_STATUS")
    private String prescStatus;

    /** db_field: STATUS_DATE; desc: 处方状态时间 */
    @ApiModelProperty("处方状态时间")
    @TableField("STATUS_DATE")
    private Date statusDate;

    /** db_field: OPERATOR_NO; desc: 收款员号 */
    @ApiModelProperty("收款员号")
    @TableField("OPERATOR_NO")
    private String operatorNo;

}